//
//  ZActivityCardCell.m
//  WeClubs
//
//  Created by Zed Link on 22/4/2017.
//  Copyright © 2017 Zed. All rights reserved.
//

#import "ZActivityCardCell.h"

@interface ZActivityCardCell ()

@property (weak, nonatomic) IBOutlet UIView *cardView;
@property (weak, nonatomic) IBOutlet UIImageView *activityImgView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIButton *holderBtn;
@property (weak, nonatomic) IBOutlet UIButton *placeBtn;
@property (weak, nonatomic) IBOutlet UIButton *dateBtn;
@property (weak, nonatomic) IBOutlet UIButton *typeBtn;

@property (weak, nonatomic) IBOutlet UIButton *bookmarkBtn;
@property (weak, nonatomic) IBOutlet UIButton *commentBtn;
@property (weak, nonatomic) IBOutlet UIButton *likeBtn;
@property (weak, nonatomic) IBOutlet UIButton *applyBtn;

@end

@implementation ZActivityCardCell

- (void)zSetupCell
{
    [super zSetupCell];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    [self.contentView setBackgroundColor:[UIColor clearColor]];
    [self setBackgroundColor:[UIColor clearColor]];
    
    [self.cardView zShadowAndCornerDeal:16];
    [self.cardView setBackgroundColor:NAVBAR_BG_COLOR];
    [self.applyBtn zCornerDeal:4];
    
    [self.holderBtn setImageEdgeInsets:UIEdgeInsetsMake(0, -8, 0, 0)];
    [self.placeBtn setImageEdgeInsets:UIEdgeInsetsMake(0, -8, 0, 0)];
    [self.dateBtn setImageEdgeInsets:UIEdgeInsetsMake(0, -8, 0, 0)];
    [self.typeBtn setImageEdgeInsets:UIEdgeInsetsMake(0, -8, 0, 0)];
    
    [self.bookmarkBtn setImageEdgeInsets:UIEdgeInsetsMake(0, -6, 0, 0)];
    [self.commentBtn setImageEdgeInsets:UIEdgeInsetsMake(0, -6, 0, 0)];
    [self.likeBtn setImageEdgeInsets:UIEdgeInsetsMake(0, -6, 0, 0)];
}

@end
